package com.stork.sms.adapter;

import java.util.ArrayList;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.stork.sms.R;
import com.stork.sms.service.attendence.date.Pattandance;

public class AttendenceDateAdapter extends BaseAdapter {
	Context mcontext;
	   ArrayList<Pattandance> listitem;
	  
	public AttendenceDateAdapter(Context mcontext,ArrayList<Pattandance> listitem) {
		super();
		this.mcontext = mcontext;
		this.listitem = listitem;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		LayoutInflater inflater = (LayoutInflater) mcontext
             .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     View rowView = inflater.inflate(R.layout.listitem, parent, false);
     TextView txtname,add,phn;
		txtname=(TextView)rowView.findViewById(R.id.date);
		//add=(TextView)rowView.findViewById(R.id.address1);
		//phn=(TextView)rowView.findViewById(R.id.phone1);
		Pattandance lm=listitem.get(position);
		txtname.setText(lm.getAttendance()+"");
		//add.setText(lm.getAddress());
		//phn.setText(lm.getPhone());
		return rowView;
		
	}

	
}
